<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>心形</title>
</head>

<body>
    <!--
        作者：放弃懒惰 链接：https: //www.zhihu.com/question/40149352/answer/3123033666

        来源：知乎 著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。 
    -->
    <div class="heart"></div>
    <style>
        .heart {
            position: relative;
            display: block;
            width: 100px;
            height: 90px;
        }

        .heart:before,
        .heart:after {
            position: absolute;
            left: 50px;
            top: 0;
            width: 50px;
            height: 80px;
            content: "";
            background-color: rgb(240, 14, 14);
            border-radius: 50px 50px 0 0;
            transform: rotate(-45deg);
            transform-origin: 0 100%;
        }

        .heart:after {
            left: 0;
            transform: rotate(45deg);
            transform-origin: 100% 100%;
        }
    </style>
</body>

</html>